package com.th.common.response;

import lombok.AllArgsConstructor;

/**
 * 成功响应
 * @author 涂航
 */
@AllArgsConstructor
public  enum CommonResultData implements ResultData {
    SUCCESS(200,"请求成功！！！"),
    FAILURES(-1,"请求失败！！！");
    Integer code;
    String message;

    @Override
    public String message() {
        return this.message;
    }

    @Override
    public Integer code() {
        return this.code;
    }
}
